package com.qf.day2;

import java.util.Scanner;

public class IfNestDemo {
    public static void main(String[] args) {
         Scanner scanner = new Scanner(System.in);
         System.out.print("请输入成绩: ");
         double score = scanner.nextDouble();
         if(score<15){
             System.out.print("输入性别: ");
             String sex = scanner.next();
             if(sex.equals("男")){
                 System.out.println("进入男子决赛");
             }else if(sex.equals("女")){
                 System.out.println("进入女子决赛");
             }else {
                 System.out.println("性别错误");
             }
         }else {
             System.out.println("出局啦");
         }
    }
}
